package com.google.tests;

import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import com.google.data.UserData;
import com.google.utils.ConfigProperties;

public class BasicTestCase {
	
	protected WebDriver driver;
	
	protected UserData VVI = new UserData("vvi86@mail.ru", "neegho7k");
	
	public WebDriver getWebDriver () {
		if (driver == null) {
			driver = new FirefoxDriver ();
			driver.manage().timeouts().implicitlyWait(Long.parseLong(ConfigProperties.getProperty("imp.wait")), TimeUnit.SECONDS);
		}
		return driver;
	}
	
	@After
	public void tearDown () throws Exception {
		//driver.quit();
	}
	
}
